package ChainOfResponsibilityPattern;

public class InfoLogger extends Logger{

    public InfoLogger(Logger nextLogger) {
        super(nextLogger);
    }

    public InfoLogger(int level) {
        super();
        this.level = level;
    }

    void write(String message) {
        System.out.println("info: "+message);
    }
}
